home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / amiga / hdf / hdf.lha / DFRIG.H < prev    next >
Encoding:
C/C++ Source or Header  |  1980-02-06  |  2.6 KB  |  74 lines

  1. /*****************************************************************************
  2. *              NCSA HDF version 3.10r2
  3. *                Sept 20, 1990
  4. *
  5. * NCSA HDF Version 3.10r2 source code and documentation are in the public
  6. * domain.  Specifically, we give to the public domain all rights for future
  7. * licensing of the source code, all resale rights, and all publishing rights.
  8. * We ask, but do not require, that the following message be included in all
  9. * derived works:
  10. * Portions developed at the National Center for Supercomputing Applications at
  11. * the University of Illinois at Urbana-Champaign.
  12. * THE UNIVERSITY OF ILLINOIS GIVES NO WARRANTY, EXPRESSED OR IMPLIED, FOR THE
  13. * SOFTWARE AND/OR DOCUMENTATION PROVIDED, INCLUDING, WITHOUT LIMITATION,
  14. * WARRANTY OF MERCHANTABILITY AND WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE
  15. *****************************************************************************/
  16.  
  17. /*
  18. $Header: /pita/work/HDF/dev/RCS/src/dfrig.h,v 3.1 90/07/02 10:11:54 clow beta $
  19.  
  20. $Log:    dfrig.h,v $
  21.  * Revision 3.1  90/07/02  10:11:54  clow
  22.  * some cosmetic modifications
  23.  * 
  24. */
  25.  
  26. /*-----------------------------------------------------------------------------
  27.  * File:    dfrig.h
  28.  * Purpose: header file for the Raster Image set
  29.  * Invokes: df.h
  30.  * Contents: 
  31.  *  Structure definitions: DFRdr, DFRrig
  32.  * Remarks: This is included with user programs which use RIG
  33.  *---------------------------------------------------------------------------*/
  34.  
  35.  
  36. #ifndef DFRIG            /* avoid re-inclusion */
  37. #define DFRIG
  38.  
  39. #include "df.h"
  40.  
  41. /* description record: used to describe image data, palette data etc. */
  42. typedef struct {
  43.     int32 xdim, ydim;        /* dimensions of data */
  44.     DFdi nt;            /* number type of data */
  45.     int16 ncomponents, interlace; /* data ordering: chunky / planar etc */
  46.     DFdi compr;            /* compression */
  47.     /* ### Note: compression is currently uniquely described with a tag.
  48.        No data is attached to this tag/ref.  But this capability is
  49.        provided for future expansion, when this tag/ref might point to
  50.        some data needed for decompression, such as the actual encodings */
  51. } DFRdr;
  52.  
  53. /* structure to hold RIG info */
  54. typedef struct {
  55.     DFdi image;            /* image */
  56.     DFRdr descimage;        /* image data description */
  57.     DFdi lut;            /* color look-up table (palette) */
  58.     DFRdr desclut;        /* look-up table description */
  59.     DFdi mattechannel;
  60.     DFRdr descmattechannel;
  61.     int32 xpos, ypos;        /* X-Y position of image on screen */
  62.     float aspectratio;        /* ratio of pixel height to width */
  63.     float ccngamma, ccnred[3], ccngrren[3], ccnblue[3], ccnwhite[3];
  64.                 /* color correction parameters */
  65.     char *cf;            /* color format */
  66. } DFRrig;
  67.  
  68. #endif /*DFRIG*/
  69.